Start an asynchronous run for the specified Function. This endpoint allows you to override parameters available at runtime.
Rate limit: 2 requests/min (learn more about rate limits here).
To use this endpoint, select Write Functions under the Functions category when creating or editing an API token. Learn More.
Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
curl --request POST \
--url https://api.samsara.com/functions/{name}/runs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paramsOverride": {
"param1": "value1",
"param2": "value2"
}
}
'{
"data": {
"correlationId": "550e8400-e29b-41d4-a716-446655440000"
}
}Documentation Index
Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The name of the Function to run.
Request body for starting a Function run.
Parameter overrides for the Function execution. Can be an empty object but must be provided.
{ "param1": "value1", "param2": "value2" }OK response.
Response body after successfully starting a Function run.
Show child attributes
curl --request POST \
--url https://api.samsara.com/functions/{name}/runs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paramsOverride": {
"param1": "value1",
"param2": "value2"
}
}
'{
"data": {
"correlationId": "550e8400-e29b-41d4-a716-446655440000"
}
}